<?php

return [
	'mysql' => [
		'default' => [
            'dsn'           => 'mysql:host=localhost;port=3306;dbname={database}',
			'database'      => env('DB_NAME', 'dbtest'),
			'username'      => env('DB_USERNAME', 'demo'),
			'password'      => env('DB_PASSWORD', 'demopass'),
			'charset'       => env('DB_CHARSET', 'utf8mb4'),
			'tablePrefix'   => env('DB_PREFIX', 't_'),
		],
		'db' => [
			'admin' => [
			    'tablePrefix' => 't_',
				'database' => 'db_admin',
			],
			'shop' => [
                'tablePrefix' => 't_',
				'database' => 'db_shop',
			],
			'user' => [
                'tablePrefix' => 't_',
				'database' => 'db_user',
			],
		],
	],
	'redis' => [
        'user' => [
            ['192.168.100.200', 6389, '123456'],
            ['192.168.100.201', 6389, '123456'],
            ['192.168.100.202', 6389, '123456'],
            ['192.168.100.203', 6389, '123456'],
        ],
        'other' => [
            ['192.168.100.204', 6389, '123456'],
        ],
        'stat' => [
            ['192.168.100.205', 6389, '123456'],
        ],
	],
];
